local lhs "cog"
local rhs "hours"
local robust "simple"
local controls "${CONTROLlist_`lhs'_wage}"
local subsample  "$subsample"
local type "het2"

use "$datapath/000_`type'_byK.dta", clear
gen ub=b_HetSymm + 1.96*se_HetSymm
gen lb=b_HetSymm - 1.96*se_HetSymm
gen ubA=bA_HetSymm + 1.96*seA_HetSymm
gen lbA=bA_HetSymm - 1.96*seA_HetSymm
gen ubW=bW_HetSymm + 1.96*seW_HetSymm
gen lbW=bW_HetSymm - 1.96*seW_HetSymm

twoway (line bA_HetSymm Kcluster, lcolor(black)) || (rarea lbA ubA Kcluster, color(gs2%50)), yscale(range(-0.12 .04)) ylabel(-0.12(.02)0.04) xtitle(K) ytitle("{&beta}{sub:A}") legend(off) scheme(s1mono)
graph export "$figpath/bA_`type'_byK.pdf", replace

twoway (line bW_HetSymm Kcluster, lcolor(black)) || (rarea lbW ubW Kcluster, color(gs2%50)), yscale(range(-0.04 .12)) ylabel(-0.04(.02)0.12) xtitle(K) ytitle("{&beta}{sub:W}") legend(off) scheme(s1mono)
graph export "$figpath/bW_`type'_byK.pdf", replace
